package beautiful.butterfly.server.httpserver.exception;

public class ServerException extends RuntimeException {
    protected int status;
    protected String name;

    public ServerException(int status, String name) {
        this.status = status;
        this.name = name;
    }

    public ServerException(int status, String name, String message) {
        super(message);
        this.status = status;
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
